package day8;

import java.util.Scanner;

public class Main1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        
        while (in.hasNextInt()) { 
            int a = in.nextInt();
            int b = in.nextInt();
            int ret=1;
            while(a%2==0&&b%2==0){
                a/=2;
                b/=2;
                ret*=2;
            }

            System.out.println(ret*=a*=b);
        }
    }
}